package com.alphas.aivergilcoder.service;

import com.alphas.aivergilcoder.model.dto.app.AppQueryRequest;
import com.alphas.aivergilcoder.model.entity.App;
import com.alphas.aivergilcoder.model.entity.User;
import com.alphas.aivergilcoder.model.vo.app.AppVO;
import com.mybatisflex.core.query.QueryWrapper;
import com.mybatisflex.core.service.IService;
import reactor.core.publisher.Flux;

import java.util.List;

/**
 * 应用服务接口
 */
public interface AppService extends IService<App> {


    List<AppVO> getAppVOList(List<App> appList);

    AppVO getAppVO(App app);

    QueryWrapper getQueryWrapper(AppQueryRequest appQueryRequest);

    Flux<String> chatToGenCode(Long appId, String message, User loginUser);

    String deployApp(Long appId, User loginUser);
}